<template>
  <el-container class="center">
    <el-aside width="200px">
      <el-col>
        <h1>黑马头条</h1>
        <el-menu
          default-active="1"
          class="el-menu-vertical-demo"
          background-color="#3b6795"
          text-color="#fff"
          active-text-color="#ffd04b"
        >
          <el-menu-item
            index="1"
            @click="$router.push('/articlelist').catch((res) => {})"
          >
            <i class="el-icon-menu"></i>
            <span slot="title">文章列表</span>
          </el-menu-item>

          <el-menu-item
            index="2"
            @click="$router.push('/issuelist').catch((res) => {})"
          >
            <i class="el-icon-setting"></i>
            <span slot="title">发布文章</span>
          </el-menu-item>
        </el-menu>
      </el-col></el-aside
    >
    <el-container>
      <el-header>头部</el-header>
      <el-main><router-view></router-view></el-main>
    </el-container>
  </el-container>
</template>

<script>
export default {};
</script>

<style lang="less" scoped>
.center {
  height: 100vh;
}
h1 {
  font-size: 35px;
  width: 200px;
  height: 80px;
  line-height: 100px;
}
.el-header,
.el-footer {
  background-color: #b3c0d1;
  color: #333;
  text-align: center;
  font-size: 18px;
  // line-height: 60px;
}

.el-aside {
  background-color: #3b6795;
  color: #fff;
  font-size: 21px;
  text-align: center;
  line-height: 200px;
}
.el-menu-item {
  font-size: 18px;
  // line-height: 36px;
}
.el-menu-vertical-demo {
  border-right: 0;
}
.el-main {
  background-color: #e9eef3;
  color: #333;

  font-size: 18px;
  // line-height: 160px;
}

body > .el-container {
  margin-bottom: 40px;
}

.el-container:nth-child(5) .el-aside,
.el-container:nth-child(6) .el-aside {
  line-height: 260px;
}

.el-container:nth-child(7) .el-aside {
  line-height: 320px;
}
</style>